package com.suke.controller;

import com.suke.pojo.AssetsTotal;
import com.suke.service.AssetsTotalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 数据总数控制器
 *
 * @author Li Sipeng
 * @version 4.1 on   2022-11-28 9:31
 */

@RestController
@CrossOrigin
@RequestMapping("/assetstotal")
public class AssetsTotalController {
    @Autowired
    private AssetsTotalService assetstotalservice;

    /**
     * 根据资产id返回资产对象
     * */
    @RequestMapping("/findbyid")
    public AssetsTotal findById ( Integer id){
        AssetsTotal assetstotal = assetstotalservice.findById(id);
        return assetstotal;
    }

}
